#
# Open Systems Laboratory
# http://www.lam-mpi.org/tutorials/
# Indiana University
#
# MPI Tutorial
# Sample Makefile
#

CC              = mpicc
OPTFLAGS        =
DEBUGFLAGS      =
CFLAGS          = $(OPTFLAGS) $(DEBUGFLAGS) $(TIFFCFLAGS)
FFLAGS          = $(OPTFLAGS) $(DEBUGFLAGS) $(TIFFCFLAGS)
LDFLAGS         = $(OPTFLAGS) $(DEBUGFLAGS)

PROGRAMS        = imageproc-c

imageproc: default

image.o: image.c
	$(CC) $(CFLAGS) image.c -c

imageproc-c: imageproc.c image.o
	$(CC) $(CFLAGS) imageproc.c -o imageproc-c \
                image.o $(TIFFLDFLAGS) -ltiff  -lm
clean:
	rm -f *% *~ core *.o $(PROGRAMS)
